Product
Introducing Socket Optimize
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.
@contrast/agent-swc-plugin
Advanced tools
[
"@contrast/agent-swc-plugin",
{
"assess": true, // default: false
"inject": true // default: false
}
]
assess
When true, enables all transforms. When false, only eval
call expressions are
rewritten, as these are the only transforms required by Protect.
inject
When true, prepends the script or module with ContrastMethods
injections, i.e.
const foo = 'bar';
becomes:
var Function = global.ContrastMethods?.Function ?? Function;
var Number = global.ContrastMethods?.Number ?? Number;
var Object = global.ContrastMethods?.Object ?? Object;
var String = global.ContrastMethods?.String ?? String;
const foo = 'bar';
FAQs
SWC plugins Contrast Node agent
The npm package @contrast/agent-swc-plugin receives a total of 21,770 weekly downloads. As such, @contrast/agent-swc-plugin popularity was classified as popular.
We found that @contrast/agent-swc-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.
Product
We're excited to announce that Socket now supports the Java programming language.
Security News
Socket detected a malicious Python package impersonating a popular browser cookie library to steal passwords, screenshots, webcam images, and Discord tokens.